import React, { Component } from 'react'

export default class index extends Component {
    render() {
        const {login:userName,html_url:userUrl,avatar_url:imgUrl} = this.props;
        return (
        <div className="card">
            <a href={userUrl} target="_blank" rel="noreferrer">
            <img alt="head_portrait" src={imgUrl} style={{width: '100px'}}/>
            </a>
            <p className="card-text">{userName}</p>
        </div>
        )
    }
}
